<html>
<head><meta charset="utf-8"><title>rustc bootstrap is confusing · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html">rustc bootstrap is confusing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197423330"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197423330" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197423330">(May 13 2020 at 14:49)</a>:</h4>
<p>check should not need a stage argument, it's ignored entirely to my knowledge</p>



<a name="197424027"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424027" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424027">(May 13 2020 at 14:54)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> to be honest I have no idea how check differs from build</p>



<a name="197424103"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424103" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424103">(May 13 2020 at 14:54)</a>:</h4>
<p>I meant, other than the obvious thing that it just checks :)</p>



<a name="197424124"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424124" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424124">(May 13 2020 at 14:54)</a>:</h4>
<p>cargo check vs. cargo build, really, except because we can't produce binaries from cargo check you are limited entirely to stage 0 basically</p>



<a name="197424127"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424127" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424127">(May 13 2020 at 14:54)</a>:</h4>
<p>but talking about stages and params</p>



<a name="197424239"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424239" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424239">(May 13 2020 at 14:55)</a>:</h4>
<p>for instance if I do <code>./x.py build --stage 1 src/libstd</code>, edit a fail to make the compilation fail and then do <code>./x.py check --stage 1 src/libstd</code> check does nothing</p>



<a name="197424403"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424403" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424403">(May 13 2020 at 14:56)</a>:</h4>
<p>hm that rather sounds like a bug, to be honest</p>



<a name="197424440"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424440" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424440">(May 13 2020 at 14:56)</a>:</h4>
<p>(or maybe I misunderstood you)</p>



<a name="197424475"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424475" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424475">(May 13 2020 at 14:57)</a>:</h4>
<p>try that out :)</p>



<a name="197424495"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424495" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424495">(May 13 2020 at 14:57)</a>:</h4>
<p>run <code>./x.py build --stage 1 src/libstd</code></p>



<a name="197424501"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424501" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424501">(May 13 2020 at 14:57)</a>:</h4>
<p>I don't really have the time to wait that long</p>



<a name="197424518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424518">(May 13 2020 at 14:57)</a>:</h4>
<p>:P</p>



<a name="197424559"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424559" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424559">(May 13 2020 at 14:57)</a>:</h4>
<p>if you post logs somewhere I can take a look later</p>



<a name="197424568"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424568" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424568">(May 13 2020 at 14:57)</a>:</h4>
<p>but in any case, if you run that, edit a fail and then run check it doesn't file</p>



<a name="197424632"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424632" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424632">(May 13 2020 at 14:58)</a>:</h4>
<p>is check compiling though?</p>



<a name="197424664"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424664" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424664">(May 13 2020 at 14:58)</a>:</h4>
<p>it might also be that your rust-analyzer check is running check already</p>



<a name="197424687"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424687" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424687">(May 13 2020 at 14:58)</a>:</h4>
<p>so when you run it manually it goes "hey everything seems to have passed"</p>



<a name="197424726"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424726" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424726">(May 13 2020 at 14:58)</a>:</h4>
<p>though iirc cargo should print the error in that case</p>



<a name="197424734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424734">(May 13 2020 at 14:58)</a>:</h4>
<p>no no, this is different than the editor thing I'm talking about</p>



<a name="197424745"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424745" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424745">(May 13 2020 at 14:58)</a>:</h4>
<p>the editor is even closed</p>



<a name="197424803"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424803" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424803">(May 13 2020 at 14:59)</a>:</h4>
<p>let me show you because I have a build just opened</p>



<a name="197424846"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424846" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424846">(May 13 2020 at 14:59)</a>:</h4>
<p>going to edit the file with Rust unconfigured</p>



<a name="197424853"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424853" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424853">(May 13 2020 at 14:59)</a>:</h4>
<p>I kicked off x.py build locally at least</p>



<a name="197424897"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424897" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424897">(May 13 2020 at 14:59)</a>:</h4>
<p>I've seen this in the past</p>



<a name="197424964"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197424964" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197424964">(May 13 2020 at 15:00)</a>:</h4>
<p>this is why I never use <code>check</code></p>



<a name="197425084"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425084" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425084">(May 13 2020 at 15:00)</a>:</h4>
<p>what file did you edit?</p>



<a name="197425262"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425262" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425262">(May 13 2020 at 15:02)</a>:</h4>
<div class="codehilite"><pre><span></span><code>[santiago@galago rust3 (master)]$ RUST_BACKTRACE=1 ./x.py build --stage 1 src/libstd
Updating only changed submodules
Submodules updated in 0.02 seconds
    Finished dev [unoptimized] target(s) in 0.16s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.15s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.18s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.15s
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Build completed successfully in 0:00:01
[santiago@galago rust3 (master)]$ vim src/librustc_driver/lib.rs
[santiago@galago rust3 (master)]$ git diff
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 913ccf8e680..26416ca7713 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -15,7 +15,6 @@ extern crate lazy_static;

 pub extern crate rustc_plugin_impl as plugin;

-use rustc_ast::ast;
 use rustc_codegen_ssa::{traits::CodegenBackend, CodegenResults};
 use rustc_data_structures::profiling::print_time_passes_entry;
 use rustc_data_structures::sync::SeqCst;
[santiago@galago rust3 (master)]$ RUST_BACKTRACE=1 ./x.py check --stage 1 src/libstd
Updating only changed submodules
Submodules updated in 0.02 seconds
    Finished dev [unoptimized] target(s) in 0.14s
Checking std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.17s
Build completed successfully in 0:00:01
[santiago@galago rust3 (master)]$ RUST_BACKTRACE=1 ./x.py build --stage 1 src/libstd
Updating only changed submodules
Submodules updated in 0.01 seconds
    Finished dev [unoptimized] target(s) in 0.12s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.13s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
   Compiling rustc_driver v0.0.0 (/home/santiago/src/oss/rust3/src/librustc_driver)
error[E0433]: failed to resolve: use of undeclared type or module `ast`
    --&gt; src/librustc_driver/lib.rs:1076:79
     |
1076 | fn parse_crate_attrs&lt;&#39;a&gt;(sess: &amp;&#39;a Session, input: &amp;Input) -&gt; PResult&lt;&#39;a, Vec&lt;ast::Attribute&gt;&gt; {
     |                                                                               ^^^ use of undeclared type or module `ast`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.
error: could not compile `rustc_driver`.

To learn more, run the command again with --verbose.
command did not execute successfully: &quot;/home/santiago/src/oss/rust3/build/x86_64-unknown-linux-gnu/stage0/bin/cargo&quot; &quot;build&quot; &quot;--target&quot; &quot;x86_64-unknown-linux-gnu&quot; &quot;-Zbinary-dep-depinfo&quot; &quot;-j&quot; &quot;8&quot; &quot;--release&quot; &quot;--features&quot; &quot; llvm&quot; &quot;--manifest-path&quot; &quot;/home/santiago/src/oss/rust3/src/rustc/Cargo.toml&quot; &quot;--message-format&quot; &quot;json-render-diagnostics&quot;
expected success, got: exit code: 101
failed to run: /home/santiago/src/oss/rust3/build/bootstrap/debug/bootstrap build --stage 1 src/libstd
Build completed unsuccessfully in 0:00:01
</code></pre></div>



<a name="197425527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425527">(May 13 2020 at 15:03)</a>:</h4>
<p>maybe related <a href="https://github.com/rust-lang/rust/issues/69337">https://github.com/rust-lang/rust/issues/69337</a></p>



<a name="197425887"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425887" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425887">(May 13 2020 at 15:06)</a>:</h4>
<p>and you run x.py check?</p>



<a name="197425889"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425889" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425889">(May 13 2020 at 15:06)</a>:</h4>
<p>or some arguments?</p>



<a name="197425976"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425976" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425976">(May 13 2020 at 15:06)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> I have a theory -- you ran x.py check --stage 1 src/libstd</p>



<a name="197425990"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197425990" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197425990">(May 13 2020 at 15:07)</a>:</h4>
<p>but that <em>only</em> checks libstd</p>



<a name="197426011"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426011" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426011">(May 13 2020 at 15:07)</a>:</h4>
<p>because stage 1 is ignored</p>



<a name="197426034"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426034" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426034">(May 13 2020 at 15:07)</a>:</h4>
<p>so you've essentially done the same as x.py build --stage 0 src/libstd</p>



<a name="197426046"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426046" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426046">(May 13 2020 at 15:07)</a>:</h4>
<p>(except with a check)</p>



<a name="197426065"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426065" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426065">(May 13 2020 at 15:07)</a>:</h4>
<p>I should file a PR banning --stage to check, I guess</p>



<a name="197426086"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426086" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426086">(May 13 2020 at 15:07)</a>:</h4>
<p><span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>



<a name="197426167"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426167" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426167">(May 13 2020 at 15:08)</a>:</h4>
<p>is there a reason why <code>--stage</code> doesn't work with <code>check</code>?</p>



<a name="197426195"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426195" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426195">(May 13 2020 at 15:08)</a>:</h4>
<p>as I mentioned you can't produce binaries with check</p>



<a name="197426258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426258">(May 13 2020 at 15:09)</a>:</h4>
<p>so if you actually did do --stage 1 src/libstd we'd need to do basically <code>x.py build --stage 0 src/rustc &amp;&amp; x.py check --stage 1 src/libstd</code> but that's not usually helpful and I didn't want to spend development time making it work</p>



<a name="197426284"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426284" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426284">(May 13 2020 at 15:09)</a>:</h4>
<p>ahh I see</p>



<a name="197426290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/rustc%20bootstrap%20is%20confusing/near/197426290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/rustc.20bootstrap.20is.20confusing.html#197426290">(May 13 2020 at 15:09)</a>:</h4>
<p>makes sense</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>